package com.mwumz.lab1.netty.codec;

/**
 * 通信协议的消息体
 *
 * @Author: wumz
 * @Date: 2020/7/10 18:10
 * @Version 1.0
 */
public class Invocation {

    /**
     * 类型
     */
    private String type;
    /**
     * 消息，JSON 格式
     */
    private String message;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Invocation(){

    }

    @Override
    public String toString() {
        return "Invocation{" +
                "type='" + type + '\'' +
                ", message='" + message + '\'' +
                '}';
    }

    public Invocation(String type, String message) {
        this.type = type;
        this.message = message;
    }
}
